package com.xxx;

import com.xxx.service.MyService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created By ShaoXikai on 2022/7/19
 */
public class AppContext {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("benas.xml");
        MyService myService = context.getBean("myService", MyService.class);
        myService.mm1();
    }
}
